<template>
<div>
  <download-excel
       class = "export-excel-wrapper"
       :data = "json_data"
       :fields = "json_fields"
       title="小区车主信息——车牌号登记表"
       name = "社区车牌登记.xls">
       <el-button type="primary" size="small" style="right: 30px;position: absolute;">导出EXCEL</el-button>
     </download-excel>

</div>
</template>
<script>
export default {
  data() {
    return {
     json_fields:{
       "用户":"user",
       "车牌号":"car"
     },
     json_data:[
      {user:'admin',car:'闽a1321'},
      {user:'admin1',car:'闽a3321'}
     ],
     json_meta: [
       [
         {
          "key":"charset",
          "value":"utf-8"
         }
       ]
     ]

    }
  },
  methods: {

     
  },
}
</script>
<style>

</style>